package com.cskaoyan.wx.vo;

import com.cskaoyan.bean.Address;
import com.cskaoyan.bean.Cart;

import java.util.List;

public class CheckoutVO {

    /**
     * grouponPrice : 0
     * grouponRulesId : 0
     * checkedAddress : {"id":10,"name":"赵四","userId":1,"provinceId":1,"cityId":32,"areaId":376,"address":"王道121212","mobile":"18943978945","isDefault":true,"addTime":"2021-05-12 11:19:43","updateTime":"2021-05-13 20:00:16","deleted":false}
     * actualPrice : 89088
     * orderTotalPrice : 89088
     * couponPrice : 0
     * availableCouponLength : 2
     * couponId : 0
     * freightPrice : 0
     * checkedGoodsList : [{"id":326,"userId":1,"goodsId":1181019,"goodsSn":"202105520","goodsName":"AE86","productId":355,"price":88888,"number":1,"specifications":["11111","9999"],"checked":true,"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/d5dzxxbb1mgpfs4ptl7v.jpg","addTime":"2021-05-13 20:21:44","updateTime":"2021-05-13 20:44:23","deleted":false},{"id":327,"userId":1,"goodsId":1181034,"goodsSn":"1145141919816","goodsName":"仲夏夜","productId":339,"price":100,"number":2,"specifications":["1","2","3"],"checked":true,"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/ddzgineznk3r4mkkjrx3.jpg","addTime":"2021-05-13 20:23:15","updateTime":"2021-05-13 20:44:22","deleted":false}]
     * goodsTotalPrice : 89088
     * addressId : 10
     */

    private Double grouponPrice = 0.0;
    private int grouponRulesId = 0;
    private Address checkedAddress;
    private Double actualPrice;
    private Double orderTotalPrice;
    private Double couponPrice;
    private Integer availableCouponLength;
    private int couponId;
    private Double freightPrice;
    private Double goodsTotalPrice;
    private int addressId;
    private List<Cart> checkedGoodsList;

    public Double getGrouponPrice() {
        return grouponPrice;
    }

    public void setGrouponPrice(Double grouponPrice) {
        this.grouponPrice = grouponPrice;
    }

    public int getGrouponRulesId() {
        return grouponRulesId;
    }

    public void setGrouponRulesId(int grouponRulesId) {
        this.grouponRulesId = grouponRulesId;
    }

    public Address getCheckedAddress() {
        return checkedAddress;
    }

    public void setCheckedAddress(Address checkedAddress) {
        this.checkedAddress = checkedAddress;
    }

    public Double getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(Double actualPrice) {
        this.actualPrice = actualPrice;
    }

    public Double getOrderTotalPrice() {
        return orderTotalPrice;
    }

    public Double getFreightPrice() {
        return freightPrice;
    }

    public void setFreightPrice(Double freightPrice) {
        this.freightPrice = freightPrice;
    }

    public void setOrderTotalPrice(Double orderTotalPrice) {
        this.orderTotalPrice = orderTotalPrice;
    }

    public Double getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(Double couponPrice) {
        this.couponPrice = couponPrice;
    }

    public Integer getAvailableCouponLength() {
        return availableCouponLength;
    }

    public void setAvailableCouponLength(Integer availableCouponLength) {
        this.availableCouponLength = availableCouponLength;
    }

    public int getCouponId() {
        return couponId;
    }

    public void setCouponId(int couponId) {
        this.couponId = couponId;
    }


    public Double getGoodsTotalPrice() {
        return goodsTotalPrice;
    }

    public void setGoodsTotalPrice(Double goodsTotalPrice) {
        this.goodsTotalPrice = goodsTotalPrice;
    }

    public int getAddressId() {
        return addressId;
    }

    public void setAddressId(int addressId) {
        this.addressId = addressId;
    }

    public List<Cart> getCheckedGoodsList() {
        return checkedGoodsList;
    }

    public void setCheckedGoodsList(List<Cart> checkedGoodsList) {
        this.checkedGoodsList = checkedGoodsList;
    }

    public static class CheckedAddressBean {
        /**
         * id : 10
         * name : 赵四
         * userId : 1
         * provinceId : 1
         * cityId : 32
         * areaId : 376
         * address : 王道121212
         * mobile : 18943978945
         * isDefault : true
         * addTime : 2021-05-12 11:19:43
         * updateTime : 2021-05-13 20:00:16
         * deleted : false
         */

        private int id;
        private String name;
        private int userId;
        private int provinceId;
        private int cityId;
        private int areaId;
        private String address;
        private String mobile;
        private boolean isDefault;
        private String addTime;
        private String updateTime;
        private boolean deleted;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public int getProvinceId() {
            return provinceId;
        }

        public void setProvinceId(int provinceId) {
            this.provinceId = provinceId;
        }

        public int getCityId() {
            return cityId;
        }

        public void setCityId(int cityId) {
            this.cityId = cityId;
        }

        public int getAreaId() {
            return areaId;
        }

        public void setAreaId(int areaId) {
            this.areaId = areaId;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public boolean isIsDefault() {
            return isDefault;
        }

        public void setIsDefault(boolean isDefault) {
            this.isDefault = isDefault;
        }

        public String getAddTime() {
            return addTime;
        }

        public void setAddTime(String addTime) {
            this.addTime = addTime;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public boolean isDeleted() {
            return deleted;
        }

        public void setDeleted(boolean deleted) {
            this.deleted = deleted;
        }
    }

    public static class CheckedGoodsListBean {
        /**
         * id : 326
         * userId : 1
         * goodsId : 1181019
         * goodsSn : 202105520
         * goodsName : AE86
         * productId : 355
         * price : 88888
         * number : 1
         * specifications : ["11111","9999"]
         * checked : true
         * picUrl : http://182.92.235.201:8083/wx/storage/fetch/d5dzxxbb1mgpfs4ptl7v.jpg
         * addTime : 2021-05-13 20:21:44
         * updateTime : 2021-05-13 20:44:23
         * deleted : false
         */

        private int id;
        private int userId;
        private int goodsId;
        private String goodsSn;
        private String goodsName;
        private int productId;
        private int price;
        private int number;
        private boolean checked;
        private String picUrl;
        private String addTime;
        private String updateTime;
        private boolean deleted;
        private List<String> specifications;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public int getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(int goodsId) {
            this.goodsId = goodsId;
        }

        public String getGoodsSn() {
            return goodsSn;
        }

        public void setGoodsSn(String goodsSn) {
            this.goodsSn = goodsSn;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }

        public int getProductId() {
            return productId;
        }

        public void setProductId(int productId) {
            this.productId = productId;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public boolean isChecked() {
            return checked;
        }

        public void setChecked(boolean checked) {
            this.checked = checked;
        }

        public String getPicUrl() {
            return picUrl;
        }

        public void setPicUrl(String picUrl) {
            this.picUrl = picUrl;
        }

        public String getAddTime() {
            return addTime;
        }

        public void setAddTime(String addTime) {
            this.addTime = addTime;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public boolean isDeleted() {
            return deleted;
        }

        public void setDeleted(boolean deleted) {
            this.deleted = deleted;
        }

        public List<String> getSpecifications() {
            return specifications;
        }

        public void setSpecifications(List<String> specifications) {
            this.specifications = specifications;
        }
    }
}
